home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Rat Attack (UK) (Digital Press Kit - Summer '99)
/
Rat Attack (UK) (Digital Press Kit - Summer '99).bin
/
RAT01.DIR
/
00019_Script_Go to Previous Marker
< prev
next >
Wrap
Text File
|
1999-04-26
|
1KB
|
59 lines
-- Marker Go to Previous
-- nav
-- goes to previous marker on author selected event
-- also functions through lingo by handling message 'initGotoPreviousMarker',
-- for example if this behavior was assigned to sprite 5, use
-- sendsprite 5, #initGotoPreviousMarker
property whichEvent
on initGotoPreviousMarker me
init me
end
on mouseUp me
if whichEvent = #mouseup then init me
end
on prepareFrame me
if whichEvent = #prepareframe then init me
end
on exitFrame me
if whichEvent = #exitframe then init me
end
on init me
go to marker (-1)
end
---
on getPropertyDescriptionList
set p_list = [ ¼
#WhichEvent: [ #comment: "Initializing Event:", ¼
#format: #symbol, ¼
#range: [ #MouseUp, #PrepareFrame, #ExitFrame, #InitGotoPreviousMarker], ¼
#default: #MouseUp ] ¼
]
return p_list
end
on getBehaviorDescription
return ¼
"Moves the Playback Head to the previous marker when the specified event occurs. Drag to a sprite or a frame in the script channel." && RETURN & ¼
"PARAMETERS:" && RETURN & ¼
"ò Initializing Event - Specify the event that triggers the behavior."
end